package com.example.certificate.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "用户登录")
public class LoginDTO {

    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不能为空",groups = {loginGroup.class,validationUserName.class})
    private String username;

    @NotBlank(message = "登录密码不能为空",groups = {loginGroup.class})
    @ApiModelProperty(value = "登录密码")
    private String password;

    @NotBlank(message = "登陆状态不能为空",groups = {loginGroup.class})
    @ApiModelProperty(value = "登录密码")
    private Boolean loginStatus;

    public interface loginGroup{}

    public interface validationUserName{}
}
